﻿<?
include("../Comm/Manage_err.php");
include("../Comm/Conn.php");

//$del_id = array();
$del_id = $_POST['NID'];

 
             if($del_id!=""){ 
             $del_num=count($del_id); 
             for($i=0;$i<$del_num;$i++){ 
                 mysql_query("Delete from Netsys_Product where NID='$del_id[$i]'"); 
             }  
             echo "<script>";
             echo "alert('您选择的信息已经被全部删除！');";
             echo "location.href='Netsys_List.php';";
             echo "</script>";
      }else{ 
             echo("<script type='text/javascript'>alert('请先选择项目！');history.back();</script>"); 
      }  


//$sql ="delete from Netsys_Product where NID in ($NID)" ;
//$result = mysql_query($sql);

?>
